﻿using Microsoft.AspNetCore.Mvc;
using Windows.Api.Share;
using Windows.Basics.Application;

namespace Windows.Basics.Api.Controllers
{
    public class CommonController : ApiControllerBase
    {
        private readonly IEnumService _enumSvc;
        public CommonController(IEnumService enumSvc)
        {
            _enumSvc = enumSvc;
        }

        // <summary>
        /// 获取枚举类型列表
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public List<ComboBoxResponse> GetEnumType(string code)
        {
            return _enumSvc.GetComboBoxs(code);
        }
    }
}
